﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x02000085 RID: 133
	internal class Bin16Bytes : IBytesDecoder
	{
		// Token: 0x0600024A RID: 586 RVA: 0x0000B320 File Offset: 0x00009720
		private Bin16Bytes()
		{
		}

		// Token: 0x0600024B RID: 587 RVA: 0x0000B328 File Offset: 0x00009728
		public byte[] Read(byte[] bytes, int offset, out int readSize)
		{
			int num = ((int)bytes[offset + 1] << 8) + (int)bytes[offset + 2];
			byte[] array = new byte[num];
			Buffer.BlockCopy(bytes, offset + 3, array, 0, num);
			readSize = num + 3;
			return array;
		}

		// Token: 0x040000AC RID: 172
		internal static readonly IBytesDecoder Instance = new Bin16Bytes();
	}
}
